package com.cuicuisha.gxyp.manager.service.impl;

import com.cuicuisha.gxyp.common.log.service.AsyncOperLogService;
import com.cuicuisha.gxyp.manager.mapper.SysOperLogMapper;
import com.cuicuisha.gxyp.model.entity.system.SysOperLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * ClassName: AsyncOperLogServiceImpl
 * Description:
 *
 * @Author 脆脆鲨
 * @Create 2024-09-18 20:40
 * @Version 1.0
 */
@Service
public class AsyncOperLogServiceImpl implements AsyncOperLogService {

    @Autowired
    private SysOperLogMapper sysOperLogMapper;

    @Transactional(propagation = Propagation.REQUIRES_NEW)
    @Override
    public void saveSysOperLog(SysOperLog sysOperLog) {
        sysOperLogMapper.insert(sysOperLog);
    }
}
